/*
 * @Author: windy
 * @Date: 2021-07-16 11:15:47
 * @LastEditTime: 2021-07-16 11:29:04
 * @LastEditors: windy
 * @Description:
 */
import axios from "axios";
// axios.defaults.withCredentials = true // 允许携带cookie

const localDevHost = ""; // 测试环境
const localProductionHost = ""; // 生产环境

const baseUrl = process.env.NODE_ENV === "development" ? localDevHost : localProductionHost;

const instance = axios.create({
  baseURL: baseUrl,
});

export default instance;
